package ro.sergiu.finder.models.property;

import ro.sergiu.finder.models.property.ComboAdapter;
import javax.swing.ListSelectionModel;

/**
 *
 * @author toporjinschi
 */
public enum SelectionMode implements ComboAdapter {

    SINGLE_SELECTION(ListSelectionModel.SINGLE_SELECTION, "Single selection"),
    SINGLE_INTERVAL_SELECTION(ListSelectionModel.SINGLE_INTERVAL_SELECTION, "Single selection interval"),
    MULTIPLE_INTERVAL_SELECTION(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION, "Multiple selection intervals");
    private final int id;
    private final String text;

    private SelectionMode(int id, String text) {
        this.id = id;
        this.text = text;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public String getAsString() {
        return text;
    }

}
